package lesson13;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @author tongchen
 * @create 2023-02-12 22:07
 */
public class exer05 {
    public static void main(String[] args) throws IOException {
        //创建字符写入流

        FileWriter fileWriter = new FileWriter("D:\\360安全浏览器下载\\test\\aa\\bb/test.txt");
        fileWriter.write("你爱我");
        fileWriter.write("我爱你");
        fileWriter.write("相亲相爱一家人");

        fileWriter.flush();
        fileWriter.close();
    }
}
